package com.yuantu.judiciary.model.domain;

import com.yuantu.judiciary.model.BaseDO;
import lombok.Data;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.sql.Timestamp;

/**
 * 查询授权
 *
 * @author syw
 * @since 2023-07-04
 **/
@Data
@Entity
@DynamicUpdate
@Table(name = "query_authorization")
public class QueryAuthorizationDO extends BaseDO {

    /**
     * 查询记录Id
     */
    @Comment("查询记录Id")
    private Long queryId;

    /**
     * 人脸核身单据号，有效期为 23 小时，在有效期内可以重复认证、查询
     */
    @Comment("人脸核身单据号")
    private String certifyId;

    /**
     * 认证结果
     */
    @Column(columnDefinition = "text")
    @Comment("认证结果")
    private String result;

    /**
     * 授权是否通过
     */
    @Column(name = "is_passed")
    @Comment("授权是否通过")
    private Boolean passed;

    /**
     * 过期时间
     */
    @Column(columnDefinition = "datetime")
    @Comment("过期时间")
    private Timestamp expiresTime;

}
